package com.github.wisdom.common.github.modules.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

@Data
public class SysUserRole extends Model<SysUserRole> {

	/**
	 * 用户ID
	 */
	@TableId(type = IdType.INPUT)
	private Integer userId;
	/**
	 * 角色ID
	 */
	@TableId(type = IdType.INPUT)
	private Integer roleId;

	@Override
	protected Serializable pkVal() {
		return this.userId;
	}

	@Override
	public String toString() {
		return "SysUserRole{" + ", userId=" + userId + ", roleId=" + roleId + "}";
	}
}
